package com.hongxun.design.bean;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * Created by zerdoor_pc on 2016/5/3.
 * 创建项目——土质运输item
 */
public class CreateDistanceBean {

    private String title;
    private String value;
    private String typecode;

    public String getTypecode() {
        return typecode;
    }

    public void setTypecode(String typecode) {
        this.typecode = typecode;
    }

    private String company;
    private TextWatcher textWatcher;
    public TextWatcher getTextWatcher() {
        return textWatcher;
    }

    public void setTextWatcher() {
        TextWatcher textWatcher=new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {

            }

            @Override
            public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {

            }

            @Override
            public void afterTextChanged(Editable editable) {
                value=editable.toString();
            }
        };
        this.textWatcher = textWatcher;
    }

    public CreateDistanceBean() {
    }

    public CreateDistanceBean(String title, String typecode, String value, String company) {
        this.title = title;
        this.typecode = typecode;
        this.value = value;
        this.company = company;
        setTextWatcher();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getCompany() {
        return company;
    }

    public String getTitleCode() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }
}
